---
title: 'Upgrading to v2.0'
publishedAt: '2024-11-07T19:56:08.302Z'
status: 'published'
author:
  name: 'Andre Vitorio'
  picture: 'https://avatars.githubusercontent.com/u/1417109?v=4'
slug: 'upgrading-to-v2.0'
---

Outstatic v2.0 offers support for Next.js 15. If you are using Next.js 14, please use v1.4.

### Styles

We've added a few components which are styled using a `outstatic` css namespace (id).

To make sure your dashboard works with the new styles, you should add the id to your `app/(cms)/layout.tsx`'s `body` tag.

`/app/(cms)/layout.tsx`

```javascript
export default function RootLayout({ children }) {
  return (
    <html suppressHydrationWarning>
      <body id="outstatic">{children}</body>
    </html>
  )
}
```

### Media Files (No code changes needed)

We are now using a **Media Library** page. You will have to define a **Repo Media Path** and a **Public Media Path**. You will be prompted to set up your paths either from the Media Library page or when trying to upload an image to a document.

It should work the same as before, but with the Media Gallery you will be able to easily reuse images you've already uploaded to your repository.
